package com.bearingnavi.android.util;

import com.bearingnavi.android.R;

import android.app.Notification;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;

public class ReturnNotification extends Notification {
	
	private static final int icon = R.drawable.icon;
	private static final CharSequence tickerText = "Bearing Navigation is running";
	private static final CharSequence contentTitle = "Bearing Navi is running";
	private static final CharSequence contentText = "Touch to switch back";
	
	public ReturnNotification(Context context) {
		super(icon, tickerText, System.currentTimeMillis());
		
		Intent notificationIntent = new Intent(context, context.getClass());
		PendingIntent contentIntent = PendingIntent.getActivity(context, 0, notificationIntent, 0);
		
		setLatestEventInfo(context, contentTitle, contentText, contentIntent);
		flags = Notification.FLAG_ONGOING_EVENT;
	}

}
